import request from '@/utils/request'

//查询数据
export function findByStockPage(current,size,data) {
  return request({
    url: `bizOutStock/findByPage/${current}/${size}`,
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//回收 和还原 订单
export function updByStatus(id,status) {
  return request({
    url: `bizOutStock/updStatus/${id}/${status}`,
    method: 'put',
  })
}

//审核通过
export function updByPass(id) {
  return request({
    url: `bizOutStock/updPass/${id}`,
    method: 'put',
  })
}

//删除订单
export function removeByOutstock(id) {
  return request({
    url: `bizOutStock/removeOutstock/${id}`,
    method: 'delete',
  })
}

//明细查询
export function findByPro(num) {
  return request({
    url: `bizOutStock/bizProduct/findPro/${num}`,
    method: 'get',
  })
}
